package homework.day01;

import java.io.File;
import java.io.IOException;

public class Text01 {
    public static void main(String[] args) throws IOException {
        for (int i = 0; i < 100; i++) {
            File file = new File("./"+i+".txt");
            if (file.exists()){
                System.out.println("文件"+i+".txt已经存在");
            }else {
                file.createNewFile();
                System.out.println("文件"+i+".txt已创建完毕。");
            }
        }

    }
}
